package com.todod.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.todod.entity.QueryEntry;
import com.todod.entity.ResultData;
import com.todod.model.LoginLog;
import com.todod.service.ILoginLogService;

/**
 * 登陆日志
 * 
 * @ClassName: LoginLogController
 * @Description:
 * @author gsh
 * @date 2020年4月12日
 *
 */
@RestController
@RequestMapping("/loginLog")
public class LoginLogController extends BaseManageController {

	@Autowired
	private ILoginLogService loginLogService;

	/**
	 * 获取登陆日志列表
	 * 
	 * @Title: getPage
	 * @Description:
	 * @author gsh
	 * @date 2020年4月12日
	 * @param queryEntry
	 * @return
	 */
	@GetMapping("/getPage")
	public ResultData getPage(QueryEntry queryEntry) {
		IPage<LoginLog> page = loginLogService.getPage(queryEntry);

		return ResultData.success("ok", page);
	}

}
